package com.gobuy.search;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;

/**
 * @author Gaozexi on 2020/6/8 9:55
 * Step by Step  and Stand on,  You Are The Best Investment!
 */
@SpringBootApplication
@EnableEurekaClient

/**
 * 开启Feign的接口调用
 */
@EnableFeignClients(basePackages = {"com.gobuy.goods.feign"})
public class SearchApplication {
    public static void main(String[] args) {
        SpringApplication.run(SearchApplication.class,args);
    }
    @Bean
    public ObjectMapper getObjectMapper(){
        return new ObjectMapper();
    }
}
